<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/commons/taglibs.jsp" %>
<html>
<head>
	<%@ include file="/commons/meta.jsp" %>
	<title>User Manage</title>
</head>

<body>
<div id="page">
	<div id="header">
		<h1>Helloworld Sample</h1>
	</div>
	<%@ include file="/commons/messages.jsp" %>
	<div id="content">
		<h1>User Infomation Manage</h1>
		<html:form action="/user.do" focus="name" styleClass="form" onsubmit="return validateUserForm(this)">
			<input type="hidden" name="method" value="save"/>
			<html:hidden property="id"/>
			<table>
				<tr>
					<td><label>Name</label></td>
					<td>
						<html:text property="name" styleClass="text"/>
						<span class="req">*</span>
						<span class="fieldError"><html:errors property="name"/></span>
					</td>
				</tr>
				<tr>
					<td><label>EMail</label></td>
					<td>
						<html:text property="email" styleClass="text"/>
					</td>
				</tr>
				<tr>
					<td><label>Remark</label></td>
					<td>
						<html:textarea property="descn" rows="10" cols="40"/>
					</td>
				</tr>
			</table>
			<div>
				<html:submit property="saveBtn" styleClass="button">Save</html:submit>
				<html:cancel styleClass="button">Cancel</html:cancel>
			</div>
		</html:form>
	</div>
</div>
<html:javascript formName="userForm" staticJavascript="false" dynamicJavascript="true" cdata="false"/>
<script type="text/javascript" src="${ctx}/scripts/validator.jsp"></script>
<%@ include file="/commons/footer.jsp" %>
</body>
</html>